package com.kitty.game.task.service.taskHandler;

import com.kitty.game.config.TaskSet;
import com.kitty.game.role.model.Role;
import com.kitty.game.task.model.product.TaskType;
import org.springframework.stereotype.Component;

@Component
public class LuobotaoziTaskHandler extends TaskHandler {
    public TaskType getTaskType() {
        return TaskType.luobotaozi;
    }

    public boolean acceptTask(Role role, TaskSet taskSet) {
        this.doBeforeAccept(role, taskSet);
        this.doAcceptTask(role, taskSet);
        this.doAfterAccept(role, taskSet);
        return true;
    }

    public void doBeforeAccept(Role role, TaskSet taskSet) {
    }
}